export default () => ({
  port: parseInt(process.env.PORT || '7777', 10),
  database: {
    type: process.env.DATABASE_DIALECT || 'mysql',
    host: process.env.DATABASE_HOST || 'localhost',
    port: process.env.DATABASE_PORT || 3306,
    username: process.env.DATABASE_USER || 'root',
    password: process.env.DATABASE_PASSWORD || 'root',
    database: process.env.DATABASE_DB || 'movie',
    schema: process.env.DATABASE_SCHEMA || null,
    synchronize: process.env.DATABASE_SYNCHRONIZE === 'true',
  },
  craweler: {
    movie: {
      home: process.env.MOVIE_HOME,
    }
  }
});
